package www.QingD.com.controllers;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/loginC")
public class LoginC {
    @RequestMapping("/login")
    public ResponseEntity<Map<String,Object>> login(String name, String pass){
        System.out.printf("用户正在登录"+name+":"+pass);
        Map map = new HashMap<String,Object>();
        map.put("title","登录成功");
        return new ResponseEntity<Map<String,Object>>(map,HttpStatus.OK);
    }
}
